﻿
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebCore_MVC.Services;

namespace WebCore_MVC.Configuration
{
    public static class ServiceExtension
    {
        public static IServiceCollection AddAppServices(this IServiceCollection service)
        {
            if (service!=null)
            {
           service.AddTransient<ServiceContext>();

            }
            return service;
        }
      
    }
}
